/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;

/**
 * <p>Project: javaseapp - Dir2
 * <p>Powered by webrx On 2021-08-11 09:07:50
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Dir2 {
    public static void main(String[] args) {
        File file = new File("c:\\myuser\\a\\b\\c");
        //file.mkdirs();//建立
        //System.out.println(file);
        if (file.exists()) {
            //删除目录
            //file.delete();
        }


        if (file.delete()) {
            System.out.println("删除成功");
        } else {
            System.out.println("删除失败");

        }
    }
}
